<?php
namespace Common\Controller;
/**
 * huhaiqin
 * 20210205,管理员通用继承控制器
 */
class AdminBaseController extends BaseController{

    public function _initialize(){
        parent::_initialize();
        if($_SESSION['loginUser']['role'] != 'admin'){
            $this->_empty();
        }
    }
}